if (!Object.prototype.hasOwnProperty.call(global, 'window')) {
    const window = {
        location: {
            href: 'http://localhost:8080'
        }
    };

    Object.defineProperty(window, 'onload', {
        set: (fn) => {
            setTimeout(fn, 0);
        }
    });

    global.window = window;
}
